package com.ge.demo.restfulws.beans;

import java.io.Serializable;

import org.springframework.hateoas.Link;
import org.springframework.hateoas.ResourceSupport;

public class Company extends ResourceSupport implements Serializable{

	private static final long serialVersionUID = 4573458928348132L;
	
	private long companyId;
	private String companyName;

	public long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(long companyId) {
		this.removeLinks();
		this.add(new Link("/company/"+companyId, Link.REL_SELF));
		this.companyId = companyId;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

}
